<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <!-- <script>
       function decom(array){
           let arr = []
           for (let i = 0; i < array.length; i++) {
             if (arr.indexOf(array[i]) === -1) {
                arr.push(array[i]);
             }
               
           }
           return  arr
       }
       let array = [50,52,16,25,65,16,25,36,50];
        // return {...array}
       console.log(decom(array));
       console.log(array);



    </script>

     -->



     <script>
         function delCom (arr){
           let  Array = [];
             for (let i = 0; i < arr.length; i++) {
               
            if (Array.indexOf(arr[i]) === -1) {
                Array.push(arr[i]);
            }
                
             }
             return Array
            
         }
         arr = [21,22,23,21,26,32,21,22];
         console.log(delCom(arr));
         console.log(arr);

     </script>



















</body>
</html>